package com.coca1cole.redis.init;


import org.springframework.stereotype.Component;

/**
 * 抽象缓存预热类
 */
@Component
public abstract class AbstractCache {
    public void initCache(){}
    public <T> T getCache(String key) {
        return null;
    }
    public void clearCache(){}
    public void reloadCache(){
        clearCache();
        initCache();
    }
}
